# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
# Contributor: George Rawlinson <george@rawlinson.net.nz>

pkgbase=fantasque-sans-mono
pkgname=('otf-fantasque-sans-mono' 'ttf-fantasque-sans-mono')
pkgver=1.8.0
pkgrel=2
pkgdesc='Font family with a great monospaced variant for programmers'
arch=('any')
url=https://github.com/belluzj/fantasque-sans
license=('custom:OFL')
source=("$pkgbase-$pkgver.tar.gz::$url/releases/download/v$pkgver/FantasqueSansMono-Normal.tar.gz")
sha512sums=('3afbd441d192769ea44fd7730e728844d13c15b0dd52e3968e6e1659ffa11a173d21891c09ceb7465b83a0b8c923129df2554e159620c9611ee9bb6ff35c90c6')

package_otf-fantasque-sans-mono() {
  install -Dm644 -t "$pkgdir"/usr/share/fonts/OTF OTF/*.otf
  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/${pkgname[0]}/LICENSE
}

package_ttf-fantasque-sans-mono() {
  install -Dm644 -t "$pkgdir"/usr/share/fonts/TTF TTF/*.ttf
  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/${pkgname[1]}/LICENSE
}
